<template>
  <div>
    <p>{{ state.count }}</p>
    <button @click="add">增加 一</button>
  </div>
</template>

<script setup lang="ts">
import {reactive} from "vue";


const state = reactive({
  count: 0
})

const add = () => {
  state.count += 1
}


</script>

<style scoped>

</style>
